home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1999 #2
/
Amiga Plus CD - 1999 - No. 2.iso
/
System-Boost
/
Grafik
/
AmiCAD
/
ARexx_english
/
SavePalette.AmiCAD
< prev
next >
Wrap
Text File
|
1998-06-17
|
778b
|
35 lines
/* Sauve the current palette in a file */
/* The file can be loaded using the menu Preferences/Configuration/Load */
/* $VER: 1.00e (© R.Florac, Chez Corbin, 24 mai 1998) */
options results
signal on error
signal on syntax
'REQFILE("Name of the destination file?", "")'; fichier=result
if fichier ~="" then do
if open(file, fichier, 'W') then do
call writeln(file, "AmiCADPrefs 1.1")
call writeln(file, "[Palette]")
do color=0 to 15
c="Color"||color||"="
'GETCOLOR('color')'; c=c||result
call writeln(file,c)
end
close(file)
end
end
exit
/* Traitement des erreurs, interruption du programme */
syntax:
erreur=RC
'MESSAGE("Syntax error"+CHR(10)+"in line 'SIGL'"+CHR(10)+"'errortext(erreur)'")'
exit
error:
'MESSAGE("Error in line 'SIGL'")'
exit